﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BLToolkit.Data;

namespace MvcVietAir.Models
{
    public class RepositoryPricesTable
    {
        private DbManager db = new DbManager("MvcVietAirConnectionString");

        public List<PricesTable> GetAll(string id)
        {
            using (db)
            {
                return db.SetSpCommand("PricesTable_GetAll", db.Parameter("@Airline", id)).ExecuteList<PricesTable>();
            }
        }
    }
}